# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-openstep-parser
_pkgname=openstep_parser
pkgver=2.0.1
pkgrel=3
pkgdesc='OpenStep plist reader into python objects.'
arch=('any')
url='https://pypi.org/project/openstep-parser/#files'
license=('MIT')
depends=('python' 'python-nose' 'python-coverage')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('a739893f2e57b022d3368cced8767eba7d37256ac2db958cf0711ee2de40cae87b7875c63569d0f66ce20ee890a75b8c4956706ea209c57b1111a716c8a2f5e8')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

